home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / pgpwin11 / pgpr.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  1009 b   |  36 lines

  1. VERSION 2.00
  2. Begin Form PGPR 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "PGP Reader"
  5.    ClientHeight    =   2580
  6.    ClientLeft      =   1095
  7.    ClientTop       =   1485
  8.    ClientWidth     =   4890
  9.    Height          =   2985
  10.    Icon            =   PGPR.FRX:0000
  11.    Left            =   1035
  12.    LinkMode        =   1  'Source
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   2580
  16.    ScaleWidth      =   4890
  17.    Top             =   1140
  18.    Width           =   5010
  19. Dim ispgp As Integer
  20. Sub Form_Load ()
  21.     If LTrim$(RTrim$(Command$)) = "" Then
  22.         i% = MsgBox("Usage: pgpr filename")
  23.         End
  24.     End If
  25.     i% = Shell("notepad " + Command$, 1)
  26.     ispgp = 0
  27.     Open Command$ For Input As #1
  28.     While Not (ispgp Or EOF(1))
  29.      Input #1, l$
  30.      If InStr(l$, "-----BEGIN PGP") Then ispgp = 1
  31.     Wend
  32.     Close (1)
  33.     If ispgp Then i% = Shell("pgpread.pif " + Command$, 1)
  34.     End
  35. End Sub
  36.